﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace AnesSystem.Controls
{
    public class BaseTableTitleCtrl:UserControl
    {
        #region Variables

        #endregion

        #region Constructor

        public BaseTableTitleCtrl()
        {
            
        }

        #endregion

        #region Properties

        #endregion

        #region 依赖属性

        /// <summary>
        /// 标题
        /// </summary>

        public string Titile
        {
            get { return (string)GetValue(TitileProperty); }
            set { SetValue(TitileProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Titile.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty TitileProperty =
            DependencyProperty.Register("Titile", typeof(string), typeof(BaseTableTitleCtrl), new PropertyMetadata("XX人民医院"));



        public double TitleFontSize
        {
            get { return (double)GetValue(TitleFontSizeProperty); }
            set { SetValue(TitleFontSizeProperty, value); }
        }

        // Using a DependencyProperty as the backing store for TitleFontSize.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty TitleFontSizeProperty =
            DependencyProperty.Register("TitleFontSize", typeof(double), typeof(BaseTableTitleCtrl), new PropertyMetadata(40.0));
        

        public Brush FontColor
        {
            get { return (Brush)GetValue(FontColorProperty); }
            set { SetValue(FontColorProperty, value); }
        }

        // Using a DependencyProperty as the backing store for FontColor.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty FontColorProperty =
            DependencyProperty.Register("FontColor", typeof(Brush), typeof(BaseTableTitleCtrl), new PropertyMetadata(Brushes.Black));

        #endregion

        #region Event

        #endregion

        #region Private Methods

        #endregion

        #region Public/Protected Methods

        #endregion

        #region EventHandlers

        #endregion
    }
}
